<template>
	<view>
		<view class="item" v-for="item in 4">
			<image :src="img" class="img" mode="widthFix">
			</image>
			<view class="status  row-center">
				<view class="status-reject">
					已驳回
				</view>
			</view>
			
			<view class="reason">驳回原因：图片含有敏感内容</view>
			<view class="row-end">
				<view class="btn-delete">删除</view>
				<view class="btn-delete">不展示</view>	
			</view>
		</view>
		
		<view style="height: 150rpx;"></view>
		<view class="bottom">
			<view class="btn row-center" @click="goSwiper">添加</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				img:'https://cdn.uviewui.com/uview/swiper/swiper1.png'
			}
		},
		methods: {
			goSwiper(){
				uni.navigateTo({
					url:'/src/pages/merchant_index/add_swiper'
				})
			}
		}
	}
</script>
<style>
	page{
		background: #F2F3F8;
	}
</style>
<style scoped lang="scss">
	
	.bottom {
		width: 100%;
		bottom: 0;
		position: fixed;
		height: 120rpx;
		background: #FFF;
	
		.btn {
			height: 80rpx;
			width: calc(100% - 72rpx);
			margin-left: 36rpx;
			margin-right: 36rpx;
			border-radius: 40rpx;
			background: #3B60D3;
			color: #FFF;
			font-size: 32rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 48rpx;
		}
	}

	.item{
		margin: 20rpx;
		position: relative;
		padding: 20rpx;
		border-radius: 12rpx;
		background: #FFF;
		.img{
			width: 100%;
			height: 240rpx;
			border-radius: 12rpx;
		}
	.status{
		top: 30rpx;
		left: 30rpx;
		padding: 10rpx 20rpx;
		position: absolute;
		border-radius: 8rpx;
		background: #FFF;
	}
	.status-wait{
		color:  #FF8934;
		font-size: 24rpx;
		font-style: normal;
		font-weight: 500;
		line-height: 40rpx; /* 166.667% */
	}
		.status-success{
			color:  #3B60D3;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 40rpx; /* 166.667% */
		}
		.status-reject{
			color:  #EA401D;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 40rpx; /* 166.667% */
		}
		.reason{
			margin-top: 20rpx;
			color:  #EA401D;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 400;
			line-height: 40rpx; /* 166.667% */
		}
		.btn-delete{
			margin-right: 20rpx;
			padding: 8rpx 24rpx;
			color: #FFF;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 400;
			line-height: 40rpx; /* 166.667% */
			border-radius: 40rpx;
			background: #6A6876;
		}
		.btn-hide{
				margin-right: 20rpx;
			padding: 8rpx 24rpx;
			border-radius: 40rpx;
			background: #3B60D3;
			color: #FFF;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 400;
			line-height: 40rpx; /* 166.667% */
			
		}
	}
</style>
